Matthias Clasen [Mon, 5 Mar 2012 20:37:49 +0000 (15:37 -0500)]
Remove broken quit-mnemonic reftest
Matthias Clasen [Mon, 5 Mar 2012 20:36:50 +0000 (15:36 -0500)]
Remove broken misc-alignment reftest
Matthias Clasen [Mon, 5 Mar 2012 20:35:35 +0000 (15:35 -0500)]
Remove broken label-sizing reftest
Matthias Clasen [Mon, 5 Mar 2012 20:34:46 +0000 (15:34 -0500)]
Remove broken css-match-region-matches-star reftest
Matej Urbančič [Mon, 5 Mar 2012 16:47:52 +0000 (17:47 +0100)]
Updated Slovenian translation
Chao-Hsiung Liao [Mon, 5 Mar 2012 13:18:09 +0000 (21:18 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Matthias Clasen [Mon, 5 Mar 2012 13:15:54 +0000 (08:15 -0500)]
Bump glib dep to 2.31.20
Needed for --valist-marshallers
Matthias Clasen [Mon, 5 Mar 2012 12:17:59 +0000 (07:17 -0500)]
Fix symbol lists
Alexander Larsson [Mon, 5 Mar 2012 11:39:09 +0000 (12:39 +0100)]
Add custom va_marshallers in some places
This is a slight performance optimization in the common case.
Matthias Clasen [Mon, 5 Mar 2012 11:07:02 +0000 (06:07 -0500)]
Update for 3.3.18
Daniel Mustieles [Mon, 5 Mar 2012 09:55:10 +0000 (10:55 +0100)]
Updated Spanish translation
Matthias Clasen [Mon, 5 Mar 2012 01:05:08 +0000 (20:05 -0500)]
gdk: Remove an unused enumeration
We don't have any API using the GdkExtensionMode enumeration, so
no point in carrying it in the headers.
Matthias Clasen [Mon, 5 Mar 2012 00:20:10 +0000 (19:20 -0500)]
scrolledwindow: Fix scroll event handling
Rewrite the code that deals with smooth scroll events to
be in terms of 'scroll units' as well.
Matthias Clasen [Mon, 5 Mar 2012 00:15:32 +0000 (19:15 -0500)]
range: Straighten the wheel delta calculation
Scroll events report normalized deltas in terms of an abstract
'scroll unit' now, so our job is to determine a suitable scroll
unit here. Since we are changing the value of the adjustment,
the allocation of the widget does not factor into this at all.
Matthias Clasen [Mon, 5 Mar 2012 00:12:27 +0000 (19:12 -0500)]
xi2: Normalize scroll deltas
XI2 provides us with an increment for each scroll valuator,
and by dividing the delta by the increment, we obtain normalized
values in some abstract 'scroll unit'.
For mouse wheels, the evdev driver reports an increment of -1,
so doing this division fixes the inverted scrolling with wheels
that we've seen recently.
Matthias Clasen [Sun, 4 Mar 2012 22:19:16 +0000 (17:19 -0500)]
grid: Work harder for tight homogeneous allocation
When doing homogeneous allocation in the presence of
overlapping spanning children, we need to avoid uneven
line allocations, otherwise, the final homogenization
will blow up the size request of the grid.
https://bugzilla.gnome.org/show_bug.cgi?id=671170
Piotr Drąg [Sun, 4 Mar 2012 21:39:03 +0000 (22:39 +0100)]
Updated Polish translation
Piotr Drąg [Sun, 4 Mar 2012 21:35:26 +0000 (22:35 +0100)]
Updated POTFILES.in
Fran Diéguez [Sun, 4 Mar 2012 19:11:23 +0000 (20:11 +0100)]
Updated Galician translations
Martin Srebotnjak [Sun, 4 Mar 2012 19:06:29 +0000 (20:06 +0100)]
Updated Slovenian translation
Martin Srebotnjak [Sun, 4 Mar 2012 19:06:11 +0000 (20:06 +0100)]
Updated Slovenian translation
Paolo Borelli [Sun, 4 Mar 2012 16:51:07 +0000 (17:51 +0100)]
Free the resource file string.
Matthias Clasen [Sun, 4 Mar 2012 16:22:44 +0000 (11:22 -0500)]
colorscale: Select for touch events
We use long touches to trigger the popup.
Matthias Clasen [Sun, 4 Mar 2012 16:21:36 +0000 (11:21 -0500)]
colorplane: Select for touch events
We now use long touches to trigger the popup.
Matthias Clasen [Sun, 4 Mar 2012 16:20:02 +0000 (11:20 -0500)]
gtk: Be more careful when ignoring touch events
Matthias Clasen [Sun, 4 Mar 2012 16:17:30 +0000 (11:17 -0500)]
gdk: Don't drop the emulating_pointer flag
When manually copying touch events, we must not forget the
emulating_pointer flag.
Changwoo Ryu [Sun, 4 Mar 2012 09:46:36 +0000 (18:46 +0900)]
Updated Korean translation
Changwoo Ryu [Sun, 4 Mar 2012 09:22:13 +0000 (18:22 +0900)]
Updated Korean translation
Bastien Nocera [Wed, 29 Feb 2012 16:18:57 +0000 (16:18 +0000)]
x11: Simplify XI2 mods state
https://bugzilla.gnome.org/show_bug.cgi?id=671070
Bastien Nocera [Wed, 29 Feb 2012 16:15:10 +0000 (16:15 +0000)]
x11: Correct GroupSwitch mask
base | latched | locked is incorrect for the group mask,
and the clamping has already been applied.
https://bugzilla.gnome.org/show_bug.cgi?id=671070
Alexander Shopov [Sun, 4 Mar 2012 06:01:00 +0000 (08:01 +0200)]
Updated Bulgarian translation
Christian Persch [Sun, 4 Mar 2012 05:28:08 +0000 (00:28 -0500)]
colorchooser: Allow removing the palettes again
https://bugzilla.gnome.org/show_bug.cgi?id=671057
Matthias Clasen [Sun, 4 Mar 2012 04:42:54 +0000 (23:42 -0500)]
Break out press-and-hold code as its own object
https://bugzilla.gnome.org/show_bug.cgi?id=671057
Daniel Korostil [Sun, 4 Mar 2012 02:16:21 +0000 (04:16 +0200)]
Uploaded Ukranian
Gabor Kelemen [Sun, 4 Mar 2012 01:11:07 +0000 (02:11 +0100)]
Updated Hungarian translation
Piotr Drąg [Sat, 3 Mar 2012 22:30:51 +0000 (23:30 +0100)]
Updated Polish translation
Daniel Korostil [Sat, 3 Mar 2012 22:07:42 +0000 (00:07 +0200)]
Uploaded Ukranian
Benjamin Otte [Sat, 3 Mar 2012 20:17:32 +0000 (21:17 +0100)]
iconview: Fix autoscroll
... when the iconview is not the only child in it's parent GdkWindow.
Benjamin Otte [Sat, 3 Mar 2012 18:44:31 +0000 (19:44 +0100)]
celllayout: Remove unused include
Benjamin Otte [Sat, 3 Mar 2012 18:41:55 +0000 (19:41 +0100)]
types: Move GtkAdustment declaration to gtktypes.h
... and make all the headers to not include gtkadjustment.h anymore. Of
course, also include it in the source files instead.
Benjamin Otte [Sat, 3 Mar 2012 18:22:22 +0000 (19:22 +0100)]
types: Clean up gtkwidget.h includes
In particular gtksettings.h and gtkstylecontext.h needed to be included
in lots of places now.
Also, I order the includes alphabetically in a bunch of headers.
Benjamin Otte [Sat, 3 Mar 2012 17:48:56 +0000 (18:48 +0100)]
types: Move widget types into gtktypes.h
Benjamin Otte [Sat, 3 Mar 2012 17:42:15 +0000 (18:42 +0100)]
gtk: Add gtktypes.h
So far, the files is empty.
Nguyễn Thái Ngọc Duy [Sat, 3 Mar 2012 15:29:44 +0000 (22:29 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 3 Mar 2012 15:13:13 +0000 (22:13 +0700)]
po/vi: import from Damned Lies
Inaki Larranaga Murgoitio [Sat, 3 Mar 2012 14:58:02 +0000 (15:58 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Sat, 3 Mar 2012 14:11:00 +0000 (15:11 +0100)]
Updated Basque language
Matthias Clasen [Sat, 3 Mar 2012 06:48:55 +0000 (01:48 -0500)]
colorswatch: Support touch events
Support long press for customizing, and short press for
selecting/activating. This is simpler than the generic
press-and-hold support in the multitouch branch; we don't
display any feedback, and the timeout is currently hardcoded
to 1 second.
Matthias Clasen [Sat, 3 Mar 2012 04:33:16 +0000 (23:33 -0500)]
gdk: Emulate motion events when requested
GtkRange was using GDK_POINTER_MOTION_MASK, and it was not
getting any emulated motion events, because we only translate
from GDK_BUTTON_MOTION_MASK to GDK_POINTER_MOTION_MASK, but not
the other way around, and emulated_mask only had
GDK_BUTTON_MOTION_MASK in it. Now we put GDK_POINTER_MOTION_MASK
in emulated_mask and successfully match for windows that
have GDK_POINTER_MOTION_MASK or any of the button motion masks
selected.
This fixes range sliders not following the finger and jumping
to the last position upon release.
Matthias Clasen [Sat, 3 Mar 2012 03:53:22 +0000 (22:53 -0500)]
pathbar: Fix scrolling
We need to select for scroll events on the buttons now, selecting
for button events no longer gives us scrolling as a side-effect.
Matthias Clasen [Sat, 3 Mar 2012 03:53:03 +0000 (22:53 -0500)]
xi2: Add some more debug output about scroll devices
Benjamin Otte [Sat, 3 Mar 2012 03:09:28 +0000 (04:09 +0100)]
pathbar: Fix gcc warning
Gabor Kelemen [Fri, 2 Mar 2012 23:39:05 +0000 (00:39 +0100)]
Updated Hungarian translation
Gabor Kelemen [Fri, 2 Mar 2012 23:39:00 +0000 (00:39 +0100)]
Updated Hungarian translation
Mikael Magnusson [Tue, 21 Feb 2012 16:14:16 +0000 (17:14 +0100)]
Iconification using _NET_WM_STATE_HIDDEN hint if supported by WM
If the Window Manager supports the _NET_WM_STATE_HIDDEN, we use it to use
the _NET_WM_STATE protocol when de-iconifying windows (iconification is
unchanged, via XIconifyWindow). Additionally, we no longer interpret all
UnmapNotify events for our window as the result of iconification.
(Based on patch by Tomas Frydrych <tf@linux.intel.com>)
Piotr Drąg [Fri, 2 Mar 2012 19:31:46 +0000 (20:31 +0100)]
Updated POTFILES.in and POTFILES.skip
Paolo Borelli [Wed, 29 Feb 2012 18:40:41 +0000 (19:40 +0100)]
Annotate gdk_window_get_frame_extents
"rect" is an output parameter
Cosimo Cecchi [Fri, 2 Mar 2012 17:47:59 +0000 (12:47 -0500)]
image: handle PROP_STORAGE_TYPE in get_property()
Fallout from GtkIconHelper transition.
Murray Cumming [Fri, 2 Mar 2012 17:29:33 +0000 (18:29 +0100)]
GtkColorChooser: Correct the signal registration
Matthias Clasen [Fri, 2 Mar 2012 14:55:55 +0000 (09:55 -0500)]
xi2: add some debug output for smooth scroll events
Matthias Clasen [Fri, 2 Mar 2012 14:37:10 +0000 (09:37 -0500)]
gtk-demo: fix the colorsel example
It is necessary to hide the dialog on "response", else it won't
go away.
Daniel Mustieles [Fri, 2 Mar 2012 13:19:25 +0000 (14:19 +0100)]
Updated Spanish translation
Javier Jardón [Fri, 2 Mar 2012 12:52:12 +0000 (12:52 +0000)]
Require XInput2.h in X11 backend
Also remove support for XInput.h
Benjamin Otte [Fri, 2 Mar 2012 01:16:30 +0000 (02:16 +0100)]
reftests: Add a rendering test for sibling matching
Benjamin Otte [Fri, 2 Mar 2012 01:05:26 +0000 (02:05 +0100)]
tests: Add parsing tests for sibling selectors
Benjamin Otte [Fri, 2 Mar 2012 01:04:15 +0000 (02:04 +0100)]
selector: Add sibling seletors
"a + b" and "a ~ b" selectors now work, provided the widget supports
siblings.
Benjamin Otte [Fri, 2 Mar 2012 00:27:11 +0000 (01:27 +0100)]
selector: Pass the sibling id around all the time
The reason for this will become apparent with the followup patches.
Benjamin Otte [Thu, 1 Mar 2012 17:33:33 +0000 (18:33 +0100)]
selector: Redo from list to array
Should save ~30% of memory
Benjamin Otte [Thu, 1 Mar 2012 16:40:19 +0000 (17:40 +0100)]
selector: Introduce gtk_css_selector_previous()
Benjamin Otte [Thu, 1 Mar 2012 15:39:52 +0000 (16:39 +0100)]
tests: Add a test for using the same selector multiple times
Benjamin Otte [Thu, 16 Feb 2012 14:16:18 +0000 (15:16 +0100)]
css: Rewrite selectors
Previously we kept a Selector object for every "simple selector" (term
from CSS spec). Now we keep one for every match operation. So given the
selector
".a b:focus"
we will have 4 elements:
- pseudoclass ":focus"
- element "b"
- match any desendant (the space)
- class ".a"
Each of those is represented by a "selector class" which is basically
the collection of vfuncs for this selector.
Benjamin Otte [Wed, 15 Feb 2012 16:18:22 +0000 (17:18 +0100)]
selector: Remove a misleading error message
Duplicate selectors are indeed fine and shouldn't cause errors.
You want to use them to up specificity.
Benjamin Otte [Wed, 15 Feb 2012 14:42:00 +0000 (15:42 +0100)]
css: Move selector parsing code into a custom function
John Ralls [Fri, 2 Mar 2012 01:00:35 +0000 (17:00 -0800)]
Quartz: Fix incompatible types in assignment
NSEvent -scrollingDeltaX and -scrollingDeltaY aren't defined before
10.7, so objc assumes that they return a pointer. Trying to cast to a
float generates a compiler error.
John Ralls [Thu, 1 Mar 2012 20:08:57 +0000 (12:08 -0800)]
Fix compile error from splitting bitmask code
GtkBitMask was typedef'd twice.
John Ralls [Thu, 1 Mar 2012 20:04:25 +0000 (12:04 -0800)]
Bug 655065 Build failure on OS X 10.7 Lion
Remove LDDADS and setting each object file's LDDAD to it; just set a global LDDAD.
Мирослав Николић [Thu, 1 Mar 2012 21:53:57 +0000 (22:53 +0100)]
Updated Serbian translation
Matthias Clasen [Thu, 1 Mar 2012 21:45:23 +0000 (16:45 -0500)]
Fix build with XI2.x for x < 2
Matthias Clasen [Wed, 29 Feb 2012 04:02:01 +0000 (23:02 -0500)]
range: Use the correct size for scaling
When scaling the scroll delta, always use the 'large' dimension
of a range widget. When dx was 0, the code code accidentally
use the small dimension.
Carlos Garnacho [Thu, 23 Feb 2012 17:24:37 +0000 (18:24 +0100)]
gdk,xi2: Ensure scroll valuators are reset on window/device switch
This is in order to avoid scrolling glitches as the device causing
scrolling to happen or the Window receiving the events changes.
Carlos Garnacho [Thu, 23 Feb 2012 13:47:13 +0000 (14:47 +0100)]
scalebutton: Set GDK_SCROLL_MASK explicitly
selecting for button press/release doesn't suffice anymore to
get scroll events.
Carlos Garnacho [Thu, 23 Feb 2012 13:46:47 +0000 (14:46 +0100)]
spinbutton: Set GDK_SCROLL_MASK explicitly
selecting for button press/release doesn't suffice anymore to
get scroll events.
Carlos Garnacho [Thu, 23 Feb 2012 13:45:18 +0000 (14:45 +0100)]
calendar: Set GDK_SCROLL_MASK explicitly
selecting for button press/release doesn't suffice anymore to
get scroll events.
Carlos Garnacho [Thu, 23 Feb 2012 13:14:33 +0000 (14:14 +0100)]
menu: Handle smooth scrolling
event->scroll.delta_y will be used to scroll the menu contents,
GDK_SMOOTH_SCROLL_MASK has been set as well
Carlos Garnacho [Tue, 24 Jan 2012 11:18:45 +0000 (12:18 +0100)]
viewport: set GDK_SMOOTH_SCROLL_MASK
This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.
Carlos Garnacho [Tue, 24 Jan 2012 11:18:27 +0000 (12:18 +0100)]
treeview: set GDK_SMOOTH_SCROLL_MASK
This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.
Carlos Garnacho [Tue, 24 Jan 2012 11:17:42 +0000 (12:17 +0100)]
layout: set GDK_SMOOTH_SCROLL_MASK
This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.
Carlos Garnacho [Tue, 24 Jan 2012 11:16:08 +0000 (12:16 +0100)]
iconview: set GDK_SMOOTH_SCROLL_MASK
This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.
Michael Natterer [Tue, 24 Jan 2012 11:12:34 +0000 (12:12 +0100)]
gtk: Implement smooth scrolling in scrolledwindow/range
If delta_x/y information is provided in scroll events, use it
to modify the underlying adjustment in steps proportional to
the deltas provided.
If the child widget of a scrolledwindow doesn't set
GDK_SMOOTH_SCROLL_MASK, regular scroll events will be dispatched,
and still handled by these 2 widgets.
Carlos Garnacho [Mon, 23 Jan 2012 23:49:52 +0000 (00:49 +0100)]
devicemanager,xi2: Implement smooth scrolling
XInput >= 2.1 allows for implementing smooth scrolling,
reporting the different scrolling axes as valuators.
Any change in those will be reported as GdkEventScroll
events with delta_x/y information.
the older kind of scroll events is still handled, and
emulated in devices able to provide smooth scrolling,
setting _gdk_event_set_pointer_emulated() in that case.
Carlos Garnacho [Mon, 23 Jan 2012 23:46:43 +0000 (00:46 +0100)]
devicemanager,x11: Initialize event->scroll.delta_x/y to 0 on core events
Michael Natterer [Mon, 23 Jan 2012 23:41:49 +0000 (00:41 +0100)]
quartz: Implement smooth scrolling
nsevent scrollingDeltaX/Y (available on OSX >= Lion) is used to
provide the smooth scrolling values. In any case, old fashioned
events are still sent, setting _gdk_event_set_pointer_emulated()
if the event contains both smooth and non-smooth values.
Carlos Garnacho [Mon, 23 Jan 2012 23:28:25 +0000 (00:28 +0100)]
gdk: update csw event mask filter to handle smooth scroll
Events of type GDK_SCROLL will be received if the client side window
event mask has either GDK_SCROLL_MASK or GDK_SMOOTH_SCROLL_MASK.
GDK_BUTTON_PRESS_MASK has been removed from type_masks[GDK_SCROLL]
as that bit is often set for other-than-scrolling purposes, and
yet have the window receive scroll events. In GTK+, this forces
non-smooth events bubbling, even if the widgets above want smooth
events, and legitimately set GDK_[SMOOTH_]SCROLL_MASK.
Carlos Garnacho [Mon, 23 Jan 2012 23:09:40 +0000 (00:09 +0100)]
gdk: Filter out either smooth or non-smooth event depending on the evmask
If a device provides both smooth and non-smooth events, the latter will be
flagged with _gdk_event_set_pointer_emulated() so the client side window
receives one or the other. If a device is only able to deliver non-smooth
events, those will be sent, so both direction/deltas may need to be handled.
Carlos Garnacho [Mon, 23 Jan 2012 23:05:39 +0000 (00:05 +0100)]
gdk: Add GDK_SMOOTH_SCROLL_MASK
By setting this event, a GdkWindow will receive scroll events
that provide delta values.
Michael Natterer [Mon, 23 Jan 2012 23:01:39 +0000 (00:01 +0100)]
gdk: transfer event->scroll.delta_x/y through csw
Carlos Garnacho [Mon, 23 Jan 2012 22:51:24 +0000 (23:51 +0100)]
gdk: deal with GDK_SMOOTH_SCROLL events as not having a direction
gdk_event_get_scroll_direction() will return FALSE on these, so
gdk_event_get_scroll_deltas() has to be used to retrieve dx/dy
Michael Natterer [Mon, 23 Jan 2012 22:37:44 +0000 (23:37 +0100)]
gdk: Add delta_x/y to scroll events
gdk_event_get_scroll_deltas() can be used to retrieve those
values on smooth scroll events.
Carlos Garnacho [Mon, 23 Jan 2012 22:45:26 +0000 (23:45 +0100)]
gdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection
This value will be used for smooth scroll events, as they'll
express the scrolling direction in terms of dx/dy.
Carlos Garnacho [Mon, 27 Feb 2012 12:09:59 +0000 (13:09 +0100)]
gdk: Get the right event window for pointer emulated events
get_event_window() just checked on GDK_TOUCH_MASK, including for emulated
pointer events, so at the very least those should also match evmasks with
no touch events whatsoever